package com.linian.pushforcampus.service;

import com.linian.pushforcampus.domain.CampusActivity;
import com.linian.pushforcampus.domain.Vip;
import com.linian.pushforcampus.domain.WeChatSendResp;

import java.util.List;
import java.util.Map;

/**
 * packageName com.linian.pushforcampus.service
 *
 * @author Lennon
 * @interfaceName PushingService
 * @date 2023/11/10
 * @description TODO
 */
public interface PushingService {

    /**
     * 向用户推送指定模板信息（推送上架活动列表）
     * @param campusActivities
     * @return
     */
    String wxpushingmsg(List<CampusActivity> campusActivities);



    /**
     *  接收微信服务器发送来的消息
     * @param param
     * @return
     */
    String receiveMessage(Map<String, String> param);


    /**
     * 向vip用户推送抢课成功
     * @param campusActivity
     * @return
     */

    String wxpushingmsgForAutoGrab(CampusActivity campusActivity, Vip vip) ;


    WeChatSendResp wxSendCustomMessage(String touser, String msgtype, String content, String token);

    //通过vip用户的xtoken获取和当前需要推送的活动进行差值计算
    String getDifference(String xToken, String educationType);



}
